$().ready(
		function() {
	
	//播放背景视频		
	new Vidage('#VidageVideo');

});

function doLogin(){
	var email = $("#inputEmail").val();
	var passwd = $("#inputPassword").val();
	if (0 == email.length || 0 == passwd.length) {
		alert("所填值不能为空");
		return;
	}
	var param = {email : email,passwd : passwd};
	$.ajax({
		  type : "POST",
		  url: "/loginForm",
		  async: false,
		  contentType:"application/json",
		  data: JSON.stringify(param),
		  success: function(result){
			if("success" == result){
				 $.ajax({  
			           type: "GET",  
			           success:function(data){  
			                 window.location.href = "/mainUI";  
			           }  
			    });  
			}else{  
				 $.ajax({  
			           type: "GET",  
			           success:function(data){  
			                 window.location.href = "/register";  
//			                 alert("该用户不存在，请重新注册......");
			           }  
			    });  
			}

		  }
		});
}